<?php


namespace App\Http\Repositories\Common;


use App\Http\Repositories\BaseRepository;
use App\Jobs\Email\SendMailJob;


class MailRepository extends BaseRepository
{

    /**
     * @param $data
     * @return array
     */
    public function sendMail($data)
    {
        SendMailJob::dispatch($data['email'], $data['content'])
            ->onQueue('email');

        return [];
    }
}
